#
# Be sure to run `pod lib lint YYNavigation.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'YYNavigation'
  s.version          = '0.4.9'
  s.summary          = 'YYNavigation is a custom navigation controller, it is very simple to use.'

  s.homepage         = 'https://git.oschina.net/YownYang/yynavigation.git'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '990192315@qq.com' => '990192315@qq.com' }
  s.source           = { :git => 'https://git.oschina.net/YownYang/yynavigation.git', :tag => s.version.to_s }


  s.ios.deployment_target = '12.0'

  s.public_header_files = 'YYNavigation/Classes/YYNavigation.h'
  s.source_files = 'YYNavigation/Classes/YYNavigation.h'
  s.resource_bundle = {
    'YYNavigation' => ['YYNavigation/Assets/*.xcassets']
  }
  
  s.subspec 'YYNavigationAnimation' do |ss|
    ss.source_files = 'YYNavigation/Classes/YYNavigationAnimation/*.{h,m}'
    ss.dependency 'YYNavigation/YYNavigationCategory'
  end

  s.subspec 'YYNavigationBase' do |ss|
    ss.source_files = 'YYNavigation/Classes/YYNavigationBase/*.{h,m}'
    ss.dependency 'YYNavigation/YYNavigationMacro'
    ss.dependency 'YYNavigation/YYNavigationCategory'
    ss.dependency 'YYNavigation/YYNavigationAnimation'
  end

  s.subspec 'YYNavigationCategory' do |ss|
    ss.source_files = 'YYNavigation/Classes/YYNavigationCategory/*.{h,m}'
    ss.dependency 'YYNavigation/YYNavigationMacro'
  end

  s.subspec 'YYNavigationMacro' do |ss|
    ss.source_files = 'YYNavigation/Classes/YYNavigationMacro/*.{h,m}'
  end
end
